package com.hsp.Demo_12_enum;

public class Demo_07 {
    public static void main(String[] args) {
        AA_07 aa = new AA_07();
        aa.showAA();
    }
}

class AA_07{
    private String name = "AA";

    public void showAA(){
        class BB_07{
            private String name = "BB";

            public void show(){
                System.out.println("BB的name=\"" + this.name + "\"");
                System.out.println("AA_07的name=\"" + AA_07.this.name + "\"");
            }
        }

        BB_07 bb = new BB_07();
        bb.show();
    }
}
